<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
  <head>
  </head>
  <style>
        *{
            margin: 0px;
        }
        .xiangq{
           float: left;
        }
        .fanhui{
            float: right;
        }
    </style>
  <body>
	<div style="width: 70%; padding-left: 10%;">
        <div class="xiangq" style="width:130px; ">
            <h1 style="font-size: 26px;width: 130px;text-align: center;">订单详情</h1>
        </div>
        <div class="fanhui" style="line-height:30px;width: 120px;height:30px;text-align: center;background-color: orangered">
            <a href="getAll.action" style="font-size: 20px;text-decoration: none;color: linen">返回列表</a>
        </div>
        <div style="border: 1px solid orangered;width: 100%;clear: left;"></div>
        <div style="padding-left: 30px;padding-top: 20px;padding-bottom: 10px;">
            <h2 style="font-size: 22px;padding-bottom: 10px;">交易单号：${orderLists.orderId }</h2>
            <div style="width: 95%;height: 82px;border: 1px solid khaki;">
                <p style="padding-top:20px;padding-left:10px;float: left;font-size: 15px;">交易单状态:<p style="font-size: 15px;padding-top:20px;padding-left:10px;color: chartreuse;float: left;">
                						<c:if test="${orderLists.state==1&&orderLists.buyUser.userId=='1'}">待付款</c:if>
				                    	<c:if test="${orderLists.state==2&&orderLists.buyUser.userId=='1'}">待发货</c:if>
				                    	<c:if test="${orderLists.state==3&&orderLists.buyUser.userId=='1'}">待收货</c:if>
				                    	<c:if test="${orderLists.state==4&&orderLists.buyUser.userId=='1'}">待评价</c:if>
				                    	<c:if test="${orderLists.state==5&&orderLists.buyUser.userId=='1'}">交易成功</c:if>
				                    	<c:if test="${orderLists.state==6&&orderLists.buyUser.userId=='1'}">待评价</c:if>
				                    	<c:if test="${orderLists.state==7&&orderLists.buyUser.userId=='1'}">交易成功</c:if>
				                    	
				                    	<c:if test="${orderLists.state==1&&orderLists.buyUser.userId!='1'}">等待买家付款</c:if>
				                    	<c:if test="${orderLists.state==2&&orderLists.buyUser.userId!='1'}">需发货</c:if>
				                    	<c:if test="${orderLists.state==3&&orderLists.buyUser.userId!='1'}">已发货</c:if>
				                    	<c:if test="${orderLists.state==4&&orderLists.buyUser.userId!='1'}">需评价</c:if>
				                    	<c:if test="${orderLists.state==5&&orderLists.buyUser.userId!='1'}">需评价</c:if>
				                    	<c:if test="${orderLists.state==6&&orderLists.buyUser.userId!='1'}">等待买家评论</c:if>
				                    	<c:if test="${orderLists.state==7&&orderLists.buyUser.userId!='1'}">交易成功</c:if>
                </p></p>
                <p style=" font-size: 15px;float: left;padding-left: 300px;padding-top: 20px;">交易时间:${orderLists.data }</p>
                <p style="font-size: 15px;padding-top:10px;padding-left:10px;clear: left;float: left;">交易金额:<p style="padding-top:10px;padding-left:10px;float: left;color: red;">${orderLists.price*orderLists.count}元</p></p>
            </div>
            <h2 style="font-size: 22px;padding-top: 20px;padding-bottom: 10px;">配送信息</h2>
            <table border='1'cellspacing="0" cellpadding="0" style="border: 1px solid;width:95%;height: 100px;">
                <tr>
                    <th style="width: 20%;">收货人</th>
                    <td style="padding-left: 15px;font-size: 15px;">${detailUser.realName}</td>
                </tr>
                <tr>
                    <th style="width: 20%;">收货地址</th>
                    <td style="padding-left: 15px;font-size: 15px;">${orderLists.address }</td>
                </tr>
                <tr>
                    <th style="width: 20%;">电话</th>
                    <td style="padding-left: 15px;font-size: 15px;">15666666666</td>
                </tr>
            </table>
            <h2 style="font-size: 22px;padding-top: 20px;padding-bottom: 10px;">商品信息</h2>
            <table border='1'cellspacing="0" cellpadding="0" style="border: 1px solid;width:95%;height: 100px;">
                <tr>
                    <th style="width: 60%;">商品详情</th>
                    <th style="width: 10%;">单价</th>
                    <th style="width: 15%;">数量</th>
                    <th style="width: 15%;">小计</th>
                </tr>
                <tr>
                    <td style="padding-left: 15px;font-size: 15px;">${orderLists.goods.goodName }</td>
                    <th style="color: red;font-size: 15px;">￥${orderLists.price}</th>
                    <th style="font-size: 15px;">${orderLists.count}</th>
                    <th style="color: red;font-size: 15px;">￥${orderLists.price*orderLists.count}</th>
                </tr>
            </table>
        </div>
        <div style="border: 1px solid orangered;width: 100%;clear: left;"></div>
        <h2 style="font-size: 22px;padding-top: 20px;padding-bottom: 10px;float: right;padding-right: 80px;">实际支付总额:<p style="color: red;">￥${orderLists.price*orderLists.count}</p></h2>
    </div>
  </body>
</html>
